import { post, get, put } from "@/request";

export const insertMenu = async (options: any): Promise<any> => {
  return post<any>("/menu/insertMenu", options);
};
export const editMenu = async (options: any): Promise<any> => {
  return put<any>("/menu/updateMenu", options);
};
//获取管理员菜单
export const selectAllMenus = async (): Promise<any> => {
  return get<any>("/menu/selectAllMenus");
};
//获取用户菜单
export const selectAllUserMenus = async (): Promise<any> => {
  return get<any>("/menu/selectAllUserMenus");
};
